package com.baseframe.topic.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baseframe.topic.entity.SnsTestTopicUserResult;
import com.baseframe.topic.service.SnsTestTopicUserResultService;
import com.baseframe.topic.mapper.SnsTestTopicUserResultMapper;
import org.springframework.stereotype.Service;

/**

* @description 针对表【sns_test_topic_user_result(能测成绩表)】的数据库操作Service实现
* @createDate 2023-07-10 04:46:12
*/
@Service
public class SnsTestTopicUserResultServiceImpl extends ServiceImpl<SnsTestTopicUserResultMapper, SnsTestTopicUserResult>
    implements SnsTestTopicUserResultService{

    @Override
    public int getResultByTopicIdAndUserId(Long topicId, Long userId) {
        Integer result = getBaseMapper().getResultByTopicIdAndUserId(topicId, userId);
        return result==null?0:result;
    }
}




